import http from '@/common/http'

const common = {
    // get请求
    testGet(params) {
        // return http('https://www.asika.cn/api/wx/sayhello', params, 'get')
        return http('/api/wx/sayhello', params, 'get')
    },
    // post请求
    testPost(params) {
        return http('/api/wx/usepost', params, 'post', {'content-type': 'application/x-www-form-urlencoded'})
        // return http('/api/wx/usepost', params, 'post')
    }
};
module.exports = common;